<template>
  <button @click="fnTrigger">触发消息</button>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { triggerMsg } from './index'

export default defineComponent({
  name: 'TriggerVue',
  data () {
    return {
      str: ' defineComponent'
    }
  },
  methods: {
    fnTrigger () {
      triggerMsg({
        title: this.str
      })
    }
  }
})
</script>
